
:root {
    --primary: #1877F2;
    --primary-light: #E8F3FF;
    --secondary: #65676B;

    /*--primary: #4F46E5;
    --primary-light: #EEF2FF;
    --secondary: #EC4899;*/

    --light-bg: #F0F2F5;
    --dark-bg: #1C1E21;
    --text-light: #8A8D91;
    --text-white: #FFFFFF;
    --border-color: #2F3336;
    --dark: #1E293B;
    --light: #F8FAFC;
    --gray: #64748B;
    --light-gray: #F1F5F9;
    --border: #E2E8F0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;


    --success: #52C41A;
    --warning: #FAAD14;
    --danger: #FF4D4F;
    --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.1);


    --primary-dark: #4338CA;

    --dark-gray: #374151;
    --text-dark: #1F2937;
    --transition: all 0.25s ease;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding-bottom: 50px; /* 为固定底部留出空间 */

    background-color: #F7F8FA;
    /*color: var(--dark);*/
    line-height: 1.6;
    padding-top: 3rem;
    color: var(--text-dark);
}

/* 链接悬停左移效果 */
a:hover {
    color: var(--primary);
    padding-left: 5px;
    transform: translateX(5px)
}


/* -----------------------------头部 开始----------------------------- */
/* 头部 四套样式 */
.header {
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 第一套样式：经典蓝色 */
.header.style-classic {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --light-bg: #f1f5f9;
    --dark-text: #1e293b;
    --border: #e2e8f0;
}

/* 第二套样式：现代深色 */
.header.style-modern {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #94a3b8;
    --light-bg: #1e293b;
    --dark-text: #f8fafc;
    --border: #334155;
}

.header.style-modern .main-nav,
.header.style-modern .logo-section {
    background-color: #0f172a;
}

.header.style-modern .search-bar {
    background-color: #1e293b;
}

.header.style-modern .search-input {
    color: #f8fafc;
}

/* 第三套样式：活力橙色 */
.header.style-vibrant {
    --primary: #ea580c;
    --primary-dark: #c2410c;
    --secondary: #94a3b8;
    --light-bg: #fff7ed;
    --dark-text: #4b5563;
    --border: #fed7aa;
}

/* 第四套样式：简约灰色 */
.header.style-minimal {
    --primary: #6b7280;
    --primary-dark: #4b5563;
    --secondary: #9ca3af;
    --light-bg: #f3f4f6;
    --dark-text: #1f2937;
    --border: #e5e7eb;
}

/* 第一排：快捷链接 */
.header .top-links {
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
}

.header .links-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .left-links, .header .right-links {
    display: flex;
    gap: 1.5rem;


    justify-content: space-between;
}

.header .top-link {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.header .top-link:hover {
    color: var(--primary);
}

/* 第二排：Logo和用户信息 */
.header .logo-section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    background-color: white;
}

.header .logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.header .logo-icon {
    font-size: 2rem;
    color: var(--primary);
}

.header .site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.header .user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header .auth-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.header .login-btn {
    color: var(--primary);
    background-color: transparent;
    border-color: var(--primary);
}

.header .login-btn:hover {
    background-color: var(--primary);
    color: white;
}

.header .register-btn {
    color: white;
    background-color: var(--primary);
}

.header .register-btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

.header .user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--dark-text);
}

.header .user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.header .user-name {
    font-weight: 500;
}

.header .user-menu-dropdown {
    font-size: 0.875rem;
    color: var(--secondary);
}

/* 第三排：栏目导航 */
.header .main-nav {
    background-color: white;
    border-bottom: 1px solid var(--border);
}

.header .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .main-menu {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header .menu-item {
    position: relative;
}

.header .menu-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.header .menu-link:hover, .header .menu-link.active {
    color: var(--primary);
}

.header .menu-link .badge {
    position: absolute;
    top: 0.5rem;
    right: -0.75rem;
    background-color: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 0.1rem 0.35rem;
    border-radius: 50%;
}

.header .search-bar {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    width: 300px;
}

.header .search-input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    margin-left: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark-text);
}
/* ---------------------------头部 结束 ------------------------------- */

/* 面包屑路径导航 */
.breadcrumb {
    margin: 1.5rem 0;
    background-color: transparent;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb  .breadcrumb-item a {
    color: var(--gray);
    text-decoration: none;
}

.breadcrumb .breadcrumb-item a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.breadcrumb .breadcrumb-item.active {
    color: var(--dark);
}


/* ---------------------------友情链接 开始 ------------------------------- */

/* 网格布局链接 */
.grid-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.grid-links .grid-link-item {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 8px;
    overflow: hidden;
}

.grid-links .grid-link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.grid-links .grid-link-item a {
    display: block;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    background-color: var(--light);
    border-radius: 8px;
    transition: background-color 0.2s;
}

.grid-links .grid-link-item a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.grid-links .grid-link-item .link-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem;
    object-fit: contain;
    border-radius: 4px;
}

.grid-links .grid-link-item .link-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.grid-links .grid-link-item .link-desc {
    font-size: 0.85rem;
    color: var(--gray);
}

/* 分类链接 */
.category-links {
    margin-bottom: 2rem;
}

.category-links .link-category {
    margin-bottom: 1.5rem;
}

.category-links .link-category .category-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.category-links .link-category .category-title i {
    margin-right: 8px;
    color: var(--primary);
}

.category-links .link-category .category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-links .link-category .category-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background-color: var(--light);
    border-radius: 20px;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.category-links .link-category .category-link:hover {
    background-color: var(--primary);
    color: white;
}

.category-links .link-category .category-link i {
    margin-right: 6px;
    font-size: 0.85rem;
}

/* 图标链接 */
.icon-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.icon-links .icon-link-item {
    flex: 1;
    min-width: 250px;
}

.icon-links .icon-link-item .icon-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: var(--dark);
    border-radius: 8px;
    background-color: var(--light);
    transition: all 0.2s;
}

.icon-links .icon-link-item .icon-link:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    transform: translateX(5px);
}

.icon-links .icon-link-item .icon-container {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary);
    font-size: 1.25rem;
    box-shadow: var(--shadow);
}

.icon-links .icon-link-item .icon-link-text {
    flex: 1;
}

.icon-links .icon-link-item .icon-link-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.icon-links .icon-link-item .icon-link-desc {
    font-size: 0.85rem;
    color: var(--gray);
}


/* 图文友情链接 */
.img-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.img-links .img-link-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    height: 100%;
}

.img-links.img-link-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.img-links .img-link-item .image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    padding: 5px;
}

.img-links .img-link-item .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-links .img-link-item .info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.img-links .img-link-item .info .title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
    color: var(--dark);
    /*color: var(--primary);*/
}

.img-links .img-link-item .info .desc {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
    flex: 1;
}

.img-links .img-link-item .info .tag {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background-color: var(--primary-light);
    color: var(--primary);
    width: fit-content;
}

/* 图文友情链接样式 */
.article-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-links .article-link-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.article-links .article-link-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.article-links .article-link-item .img-div {
    height: 160px;
    overflow: hidden;
}

.article-links .article-link-item .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-links .article-link-item:hover .img {
    transform: scale(1.05);
}

.article-links .article-link-item .info {
    padding: 1rem;
}

.article-links .article-link-item .info .title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.article-links .article-link-item .info  .desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-links .article-link-item .info  .tag {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

/* 文字友情链接样式 */
.word-links {
    display: grid;
    flex-wrap: wrap;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.word-links .word-link-item {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.word-links  .word-link-item:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.word-links .word-link-item  .link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
}

.word-links .word-link-item   .link:hover {
    color: var(--primary);
}

/* Logo友情链接样式 */
.logo-links2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.logo-links2   .logo-link-item {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s ease;
}

.logo-links2  .logo-link-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.logo-links2   .logo-link-item  .logo {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.logo-links2  .logo-link-item:hover .logo {
    filter: brightness(1.1);
}


/* 申请链接区域 */
.apply-section {
    background-color: var(--primary-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.apply-section .apply-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.apply-section .apply-description {
    color: var(--dark);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.apply-section .btn-apply {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.apply-section .btn-apply:hover {
    background-color: #0E42D2;
    transform: translateY(-2px);
}

/* --------------------------- 友情链接 结束 ------------------------------- */


/* ---------------------------栏目 开始------------------------------- */
/* 导航栏目通用样式 */
.nav-section {
    margin-bottom: 4rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* 基础多行二级栏目 */
.nav-section.basic-navigation {
    border-radius: var(--radius);
    overflow: hidden;
}

.nav-section .main-categories {
    display: flex;
    flex-wrap: wrap;
    background-color: white;
    border-bottom: 1px solid var(--border);
}

.nav-section .main-categories .main-category {
    padding: 0.85rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.nav-section .main-categories .main-category:hover {
    background-color: var(--light-gray);
}

.nav-section .main-categories .main-category.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-section .subcategories {
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.nav-section .subcategories .subcategory {
    padding: 0.4rem 0;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.nav-section .subcategories .subcategory:hover {
    color: var(--primary);
}

.nav-section .subcategories .subcategory.active {
    color: var(--primary);
    font-weight: 500;
}

.nav-section .subcategories .subcategory.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 1px;
}

/* 卡片式多行二级栏目 */
.nav-section.card-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.nav-section .category-card {
    border-radius: var(--radius);
    padding: 1.25rem;
    background-color: var(--light-gray);
    transition: all 0.3s ease;
}

.nav-section .category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background-color: white;
    border: 1px solid var(--border);
}

.nav-section .category-card.active {
    background-color: var(--primary-light);
    border: 1px solid var(--primary);
}

.nav-section .category-card .category-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: rgba(79, 70, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.nav-section .category-card .category-card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.nav-section .category-card .card-subcategories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-section .category-card .card-subcategories .card-subcategory {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-section .category-card .card-subcategories .card-subcategory:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.nav-section .category-card .card-subcategories .card-subcategory.active {
    color: var(--primary);
    font-weight: 500;
}

/* 图标式多行二级栏目 */
.nav-section.icon-navigation {
    background-color: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.nav-section .icon-main-categories {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    border-bottom: 1px solid var(--border);
}

.nav-section .icon-main-categories .icon-main-category {
    flex: 0 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-section .icon-main-categories .icon-main-category:hover {
    background-color: var(--light-gray);
}

.nav-section .icon-main-categories .icon-main-category.active {
    color: var(--primary);
}

.nav-section .icon-main-categories .main-category-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-section .icon-main-categories .main-category-name {
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-section .icon-subcategories {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.nav-section .icon-subcategories .icon-subcategory {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--dark);
    transition: all 0.2s ease;
}

.nav-section .icon-subcategories .icon-subcategory:hover {
    background-color: var(--light-gray);
    transform: scale(1.03);
}

.nav-section .icon-subcategories .icon-subcategory.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.nav-section .icon-subcategories .subcategory-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(79, 70, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.nav-section .icon-subcategories .subcategory-name {
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* 紧凑式多行二级栏目 */
.nav-section.compact-navigation {
    background-color: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1rem;
}

.nav-section .compact-section {
    margin-bottom: 1.5rem;
}

.nav-section .compact-section:last-child {
    margin-bottom: 0;
}

.nav-section .compact-section .compact-main-category {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
}

.nav-section .compact-section .compact-main-category i {
    color: var(--primary);
}

.nav-section .compact-section .compact-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nav-section .compact-section .compact-subcategories .compact-subcategory {
    padding: 0.35rem 0.85rem;
    background-color: var(--light-gray);
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--gray);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-section .compact-section .compact-subcategories .compact-subcategory:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.nav-section .compact-section .compact-subcategories .compact-subcategory.active {
    background-color: var(--primary);
    color: white;
}
/* --------------------------- 栏目 结束------------------------------- */


/* -------------------------- 轮播图 开始 -------------------------------- */
/* 通用轮播样式 */
.custom-carousel {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

/* 焦点图轮播 */
.hero-carousel .carousel-item {
    height: 500px;
    position: relative;
}

.hero-carousel .carousel-item .carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel .carousel-item .carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    text-align: left;
}

.hero-carousel .carousel-item .carousel-caption .carousel-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-carousel .carousel-item .carousel-caption .carousel-text {
    font-size: 1rem;
    max-width: 700px;
    margin-bottom: 1rem;
}

/* 用户推荐轮播 */
.users-carousel {
    padding: 1rem 0;
}

.users-carousel .carousel-inner {
    padding: 1rem 0;
}

.users-carousel .carousel-item {
    padding: 0 15px;
}

.users-carousel .carousel-item .user-card {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.users-carousel .carousel-item .user-card:hover {
    transform: translateY(-5px);
}

.users-carousel .carousel-item .user-card .user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-light);
}

.users-carousel .carousel-item .user-card .user-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.users-carousel .carousel-item .user-card .user-bio {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    min-height: 40px;
}

.users-carousel .carousel-item .user-card .user-followers {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

/* 帖子轮播 */
.posts-carousel .carousel-item {
    height: 400px;
}

.posts-carousel .carousel-item .post-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
}

.posts-carousel .carousel-item .post-card .post-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.posts-carousel .carousel-item .post-card .post-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.posts-carousel .carousel-item .post-card .post-content .post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.posts-carousel .carousel-item .post-card .post-content .post-author .author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.posts-carousel .carousel-item .post-card .post-content .post-author .author-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.posts-carousel .carousel-item .post-card .post-content .post-author .post-time {
    font-size: 0.75rem;
    color: var(--gray);
}

.posts-carousel .carousel-item .post-card .post-content .post-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.posts-carousel .carousel-item .post-card .post-content .post-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.posts-carousel .carousel-item .post-card .post-content .post-stats .post-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* 产品/活动轮播 */
.products-carousel .carousel-item {
    padding: 0 10px;
}

.products-carousel .carousel-item .product-card {
    border-radius: var(--radius);
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.products-carousel .carousel-item .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.products-carousel .carousel-item .product-card .product-image {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.products-carousel .carousel-item .product-card .product-info {
    padding: 1.25rem;
}

.products-carousel .carousel-item .product-card .product-info .product-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.products-carousel .carousel-item .product-card .product-info .product-desc {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-carousel .carousel-item .product-card .product-info .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.products-carousel .carousel-item .product-card .product-info .product-meta .product-date {
    font-size: 0.8rem;
    color: var(--gray);
}

/* 轮播控制按钮样式 */
.custom-carousel .carousel-control-prev,
.custom-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;

    /*background-color: rgba(255, 255, 255, 0.9);*/
    background-color: var(--gray);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.custom-carousel .carousel-control-prev:hover,
.custom-carousel .carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.custom-carousel .carousel-control-prev {
    left: 10px;
}

.custom-carousel .carousel-control-next {
    right: 10px;
}

.custom-carousel .carousel-control-prev .carousel-control-prev-icon,
.custom-carousel .carousel-control-next .carousel-control-next-icon {
    width: 18px;
    height: 18px;
    background-size: 100%;
}

/* 指示器样式 */
.custom-carousel .carousel-indicators {
    bottom: 15px;
}

.custom-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    opacity: 0.6;
    margin: 0 4px;
}

.custom-carousel .carousel-indicators .active {
    opacity: 1;
    width: 10px;
    height: 10px;
}


/* 1. 全屏宽幅轮播 */
.fullwidth-carousel .carousel-item {
    height: 500px;
    position: relative;
}

.fullwidth-carousel .carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fullwidth-carousel .carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    text-align: left;
}

.fullwidth-carousel .carousel-title-lg {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.fullwidth-carousel .carousel-text {
    font-size: 1rem;
    max-width: 700px;
    margin-bottom: 1rem;
}

.fullwidth-carousel .carousel-item .carousel-user {
    display: flex;
    align-items: center;
}

.fullwidth-carousel .carousel-item .carousel-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.fullwidth-carousel .carousel-item .carousel-username {
    color: white;
    font-weight: 500;
}

/* 2. 卡片式轮播 */
.card-carousel .carousel-inner {
    padding: 1rem 0;
}

.card-carousel .carousel-item {
    padding: 0 1rem;
}

.card-carousel .carousel-item .carousel-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.card-carousel .carousel-item .carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-carousel .carousel-item .carousel-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-carousel .carousel-item .carousel-card-body {
    padding: 1.25rem;
}

.card-carousel .carousel-item .carousel-card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-carousel .carousel-item .carousel-card-text {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-carousel .carousel-item .carousel-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray);
}

.card-carousel .carousel-item .carousel-card-likes {
    display: flex;
    align-items: center;
}

.card-carousel .carousel-item .carousel-card-likes i {
    color: var(--danger);
    margin-right: 0.25rem;
}

/* 3. 用户推荐轮播 */
.user-carousel .carousel-inner {
    padding: 1rem 0;
}

.user-carousel .carousel-item {
    padding: 0 0.5rem;
}

.user-carousel .carousel-item  .user-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.user-carousel .carousel-item .user-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.user-carousel .carousel-item .user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.user-carousel .carousel-item  .user-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    border: 3px solid var(--primary-light);
}

.user-carousel .carousel-item .user-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.user-carousel .carousel-item .user-bio {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.user-carousel .carousel-item .user-followers {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.user-carousel .carousel-item  .follow-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.user-carousel .carousel-item  .follow-btn:hover {
    background-color: #0E42D2;
    color: white;
}

/* 4. 微型内容轮播 */
.mini-content-carousel .carousel-inner {
    padding: 1rem 0;
}

.mini-content-carousel .carousel-item {
    padding: 0 0.75rem;
}

.mini-content-carousel .carousel-item  .mini-content-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    height: 120px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.mini-content-carousel .carousel-item .mini-content-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.mini-content-carousel .carousel-item .mini-content-img {
    width: 100px;
    flex-shrink: 0;
    object-fit: cover;
}

.mini-content-carousel .carousel-item .mini-content-body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mini-content-carousel .carousel-item .mini-content-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-content-carousel .carousel-item  .mini-content-meta {
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--gray);
    display: flex;
    align-items: center;
}

.mini-content-carousel .carousel-item  .mini-content-meta i {
    margin-right: 0.25rem;
    font-size: 0.7rem;
}

/* -------------------------- 轮播图 结束 -------------------------------- */


/* -------------------------- 会员 开始 -------------------------------- */

/* 通用用户卡片样式 */
.user-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.user-card .user-info {
    padding: 0.5rem 1rem 1rem 1rem;
}

.user-card .user-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.user-card .user-bio {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.user-card .user-stats {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
    grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
}

.user-card .user-stats .user-stat {
    text-align: center;
    flex: 1;
}

.user-card .user-stats .user-stat .stat-value {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.user-card .user-stats .user-stat .stat-label {
    font-size: 0.8rem;
    color: var(--gray);
}


.user-card .user-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.user-card .user-stats .stat-item i {
    font-size: 0.9rem;
}


.user-card .follow-btn {
    display: block;
    width: 100%;
    padding: 0.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.user-card .follow-btn:hover {
    background-color: #0E42D2;
    color: white;
}

.user-card .follow-btn.following {
    background-color: var(--light);
    color: var(--dark);
}

.user-card .follow-btn.following:hover {
    background-color: var(--border);
}

/* 头像样式 */
.user-card .avatar {
    position: relative;
    display: inline-block;
}

.user-card .avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.user-card .avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* 样式1: 网格布局用户卡片 */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.users-grid .grid-user-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: -40px auto 0;
    border: 4px solid white;
    position: relative;
    z-index: 2;
}

.users-grid .grid-user-card .card-header {
    height: 60px;
    background-color: var(--primary-light);
    position: relative;
}

.users-grid .grid-user-card .user-info {
    text-align: center;
    padding-top: 2rem;
}

/* 样式2: 横向用户列表 */
.horizontal-list {
    display: grid;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.horizontal-list::-webkit-scrollbar {
    height: 6px;
}

.horizontal-list::-webkit-scrollbar-thumb {
    background-color: var(--gray);
    border-radius: 3px;
}

.horizontal-list .horizontal-user-card {
    min-width: 200px;
    text-align: center;
}

.horizontal-list .horizontal-user-card .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 1rem auto 1rem;
}

/* 样式3: 带多图展示的用户卡片 */
.multi-image-user-card {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.multi-image-user-card:last-child {
    margin-bottom: 0;
}

.multi-image-user-card .user-avatar-container {
    width: 100px;
    flex-shrink: 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--border);
}

.multi-image-user-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

.multi-image-user-card .user-content {
    flex: 1;
    padding: 1rem;
}

.multi-image-user-card .user-content .user-posts {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.multi-image-user-card .user-content .user-posts .user-post-img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    flex-shrink: 0;
    object-fit: cover;
}

/* 样式4: 简洁用户网格 */
.simple-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
}

.simple-user-card {
    text-align: center;
    padding: 1rem;
}

.simple-user-card .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
}

.simple-user-card .user-name {
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.simple-user-card .user-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background-color: var(--primary-light);
    color: var(--primary);
    display: inline-block;
    margin-bottom: 0.75rem;
}

/* 基础用户卡片样式 */
.user-card .user-avatar-container {
    position: relative;
}

.user-card .user-avatar-container .user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.user-card:hover .user-avatar-container .user-avatar {
    transform: scale(1.05);
}

/* 没有图片的时候显示图标 */
.user-card .avatar-icon {
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 3rem;
    font-weight: 600;
}

.user-card .user-actions {
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.user-card .action-btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 0.45rem 0;
    min-width: 120px;
}

/* 网格布局用户卡片 */
.grid-users {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 5px;
}

.grid-users .grid-user-card .user-avatar-container {
    height: 180px;
}

/* 列表布局用户卡片 */
.list-users {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-users .list-user-card {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.list-users .list-user-card .user-avatar-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 1.25rem;
}

.list-users .list-user-card .user-info {
    flex-grow: 1;
    padding: 0;
    margin-right: 1rem;
}

.list-users .list-user-card .user-bio {
    margin-bottom: 0.5rem;
}

.list-users .list-user-card .user-actions {
    margin-top: 0;
    flex-shrink: 0;
}

/* 多图片用户样式 */
.user-card .user-avatar-container .multi-avatar {
    position: relative;
    width: 100%;
    height: 100%;
}

.user-card .user-avatar-container .multi-avatar img {
    position: absolute;
    width: 60%;
    height: 60%;
    border: 2px solid white;
    border-radius: 50%;
    object-fit: cover;
}

.user-card .user-avatar-container .multi-avatar img:first-child {
    top: 0;
    left: 0;
}

.user-card .user-avatar-container .multi-avatar img:nth-child(2) {
    top: 0;
    right: 0;
}

.user-card .user-avatar-container .multi-avatar img:nth-child(3) {
    bottom: 0;
    left: 20%;
}


/* -------------------------- 会员 结束 -------------------------------- */

/* ---------------------------------------------------------- */
/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* --------------------------- 分页样式 ------------------------------- */
/* 自定义分页的位置 */
 .pagination{
    /** 分页默认靠左 **/
    /** 分页居中对齐 **/
    /*display: flex;
    justify-content: center;*/
    /** 分页靠右对齐 **/
    /*display: flex;
    justify-content: flex-end;*/
}
/* 自定义所有页的样式 有默认样式 */
 .pagination .page-link {
    /** 方形分页 **/
    /*border-radius: 0;*/
    /** 圆形分页 **/
    /*border-radius: 20px;*/
    /** 紧凑分页 **/
    /*border-radius: 20px;
    padding: 0.25rem 0.65rem;*/
    /** 大型分页 **/
    /*padding: 0.75rem 1.5rem;
    font-size: 1.25rem;*/
}
/* 自定义当前页的样式 有默认样式 */
 .pagination .page-item.active .page-link {
    /*background-color: #25d366;
    border-color: #25d366;

    background-color: #1da1f2;
    border-color: #1da1f2;

    background-color: #6c757d;
    border-color: #6c757d;

    background-color: #dc3545;
    border-color: #dc3545;*/
}
/*  带信息的分页 */
 .pagination-with-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
 .pagination-with-info .pagination-info {
    color: #6c757d;
    font-size: 0.9rem;
}

/* --------------------------底部 开始 -------------------------------- */
/* 通用底部样式 */
.footer {
    width: 100%;
}

.footer .nav-link {
    padding: 0.25rem 0;
    margin-right: 1rem;
    color: inherit;
}

.footer .nav-link:hover {
    color: #0d6efd;
}

.footer .social-links .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    text-decoration: none;
}
/* ---------------------------底部 结束------------------------------- */
